﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_setting.aspx.cs" Inherits="He.Web.manage.settings.sys_setting" %>

<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统设置</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_edit runat="server" ID="uchead_edit" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        <b>您当前的位置：首页 &gt; 控制面板 &gt; 系统设置</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                语言版本设置
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                选择语言：
            </td>
            <td align="left">
                <asp:CheckBoxList ID="cblLang" RepeatColumns="3" RepeatDirection="Horizontal" runat="server" />
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                有道翻译API设置
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                *有道翻译keyfrom：
            </td>
            <td align="left">
                <asp:TextBox ID="txtKeyfrom" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="有道翻译keyfrom" HintInfo="请输入有道翻译keyfrom"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                *有道翻译key：
            </td>
            <td align="left">
                <asp:TextBox ID="txtKey" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="有道翻译key" HintInfo="请输入有道翻译key"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                Bing翻译API设置
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                *Bing翻译client_id：
            </td>
            <td align="left">
                <asp:TextBox ID="txtBingClientId" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="Bing翻译client_id" HintInfo="请输入Bing翻译client_id"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                *Bing翻译client_secret：
            </td>
            <td align="left">
                <asp:TextBox ID="txtBingClientSecret" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="Bing翻译client_secret" HintInfo="请输入Bing翻译client_secret"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                QQ登录设置
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                *APPID：
            </td>
            <td align="left">
                <asp:TextBox ID="txtQQAppId" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="APPID" HintInfo="APPID"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                *APPKEY：
            </td>
            <td align="left">
                <asp:TextBox ID="txtQQAppKey" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="APPKEY" HintInfo="APPKEY"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="3" align="left">
                系统参数设置
            </th>
        </tr>
        <tr>
            <td align="right">
                *URL模式：
            </td>
            <td align="left">
                <asp:RadioButtonList ID="rblUrlMode" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"> 
                </asp:RadioButtonList>
            </td>
            <td>
                html伪静态需服务器支持
            </td>
        </tr>
        <%if (string.IsNullOrEmpty(webset.qrurl.Trim()))
          {%>
        <tr>
            <td align="right">
                *手机二维码：
            </td>
            <td align="left">
                <asp:FileUpload ID="qrurl" runat="server" />
            </td>
            <td>
                该二维码将置于PC站在线客服下方,请上传20K以下的二维码图片，图片文件尽量不要太大。
            </td>
        </tr>
        <%}
          else
          { %>
        <tr>
            <td align="right">
                二维码预览：
            </td>
            <td align="left">
                <asp:Literal ID="qr_review" runat="server"></asp:Literal><br />
                &nbsp; &nbsp;<asp:LinkButton ID="lbtnDelQr" runat="server" Text="删除" OnClick="lbtnDelQr_Click"
                    OnClientClick="return confirm('确定要删除二维码吗?')"></asp:LinkButton>
            </td>
        </tr>
        <%} %>
        <tr>
            <td width="25%" align="right">
                *微信状态：
            </td>
            <td width="30%" align="left">
                <asp:RadioButtonList ID="rblWeixinStatus" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">关闭</asp:ListItem>
                    <asp:ListItem Value="1">开启</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>
                将文件后缀以|分开
            </td>
        </tr>
        <tr>
            <td align="right">
                *允许上传的文件格式：
            </td>
            <td align="left">
                <asp:TextBox ID="txtupload_file_type" runat="server" CssClass="required input" MaxLength="50"
                    size="50" HintTitle="允许上传的文件格式" HintInfo="请输入允许上传的文件格式,以|分开。"></asp:TextBox>
            </td>
            <td>
                将文件后缀以|分开
            </td>
        </tr>
        <tr>
            <td align="right">
                *允许上传的最大文件(KB)：
            </td>
            <td align="left">
                <asp:TextBox ID="txtupload_file_size" runat="server" CssClass="required input" MaxLength="50"
                    size="10" HintTitle="允许上传的最大文件" HintInfo="超过此大小不可上传，以KB为单位。"></asp:TextBox>
            </td>
            <td>
                超过此大小不可上传，以KB为单位。
            </td>
        </tr>
        <tr>
            <td align="right">
                管理员操作日志：
            </td>
            <td align="left">
                <asp:RadioButtonList ID="rblAdminlogsStatus" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">关闭</asp:ListItem>
                    <asp:ListItem Value="1">开启</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="right">
                前台显示留言内容：
            </td>
            <td align="left">
                <asp:RadioButtonList ID="rblShowFeedback" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="false">关闭</asp:ListItem>
                    <asp:ListItem Value="true">开启</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="right">
                会员注册时状态：
            </td>
            <td align="left">
                <asp:RadioButtonList ID="rblMemberRegStatus" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow" CssClass="required">
                </asp:RadioButtonList>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="3" align="left">
                语言模块下设置
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                模版动态引擎页面：
            </td>
            <td width="30%" align="left">
                <asp:TextBox ID="txtEnginePage" runat="server" CssClass="required input" MaxLength="50"
                    size="10" HintTitle="模版动态引擎页面" HintInfo="请填写站点模版动态引擎页面。"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <%if (string.IsNullOrEmpty(siteinfo.LogoUrl.Trim()))
          {%>
        <tr>
            <td align="right">
                *网站LOGO：
            </td>
            <td align="left">
                <asp:FileUpload ID="logourl" runat="server" />
            </td>
            <td>
                请上传20K以下的LOGO图片，图片文件尽量不要太大。
            </td>
        </tr>
        <%}
          else
          {%>
        <tr>
            <td align="right">
                LOGO：
            </td>
            <td align="left">
                <asp:Literal ID="logo_review" runat="server"></asp:Literal><br />
                &nbsp; &nbsp;<asp:LinkButton ID="lbtnDelLogo" runat="server" Text="删除" OnClick="lbtnDelLogo_Click"
                    OnClientClick="return confirm('确定要删除LOGO吗?')"></asp:LinkButton>
            </td>
        </tr>
        <%
          }%>
        <tr>
            <td align="right">
                选择插件：
            </td>
            <td align="left">
                <asp:CheckBoxList ID="cblPlug" RepeatColumns="3" RepeatDirection="Horizontal" runat="server" />
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <div style="text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="保 存 设 置" CssClass="submit" OnClick="btnSave_Click" />
    </div>
    </form>
</body>
</html>
